/*
 * @Author: 来自火星的码农 15122322+heyzhi@user.noreply.gitee.com
 * @Date: 2025-10-13 11:06:45
 * @LastEditors: 来自火星的码农 15122322+heyzhi@user.noreply.gitee.com
 * @LastEditTime: 2025-10-13 11:19:44
 * @FilePath: /GateServer/src/validator/validator.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma  once
#include "../entity/user.h"
namespace Yizhi {
    class Validator{
        public:

        enum validateResult{
        SUCCESS=0,
        USER_EXISTS,
        USER_NOT_EXISTS,
        PASSWORD_MISMATCH,
        VARIFY_CODE_INVALID,
        VARIFY_CODE_EXPIRED,
        INPUT_INVALID,
    };



        Validator()=default;
        virtual ~Validator()=default;
        virtual validateResult validate(const Yizhi::User& user)=0;

    };
}